package com.yonyou.cyxdms.sysAuth.service.vo.employee;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLongLocalDateTimeDeserializer;
import com.yonyou.cyx.function.utils.jsonserializer.localdatetime.JsonLongLocalDateTimeSerializer;

import java.time.LocalDateTime;

public class EmployeeUsersVO {
    @TableField("DATA_TYPE")
    private Integer dataType;
    @TableId(value = "EMPLOYEE_NO")
    private Integer employeeId;
    private String empRole;

    @TableId(value = "COMPANY_ID")
    private String companyId;
    /**
     * 经销商代码
     */
    @TableField("OWNER_CODE")
    private String dealerCode;
    /**
     * EMPLOYEE_NO
     */
    @TableField("EMPLOYEE_ID")
    private String employeeNo;

    /**
     * EMPLOYEE_NAME
     */
    @TableField("EMPLOYEE_NAME")
    private String employeeName;

    /**
     * LOCK_FLAG
     */
    @TableField("LOCK_FLAG")
    private Integer lockFlag;

    /**
     * USER_CODE
     */
    @TableField("USER_CODE")
    private String userCode;

    /**
     * USER_STATUS
     */
    @TableField("USER_STATUS")
    private Integer userStatus;
    /**
     * PASSWORD
     */
    @TableField("PASSWORD")
    private String password;

    @TableField("ORGANIZATION_ID")
    private Integer organizationId;
    /**
     * 职务代码
     */
    @TableField("POSITION_CODE")
    private String positionCode;
    /**
     * GENDER
     */
    @TableField("GENDER")
    private String gender;
    /**
     * 身份证号
     */
    @TableField("CERTIFICATE_ID")
    private String certificateId;
    /**
     * PHONE
     */
    @TableField("MOBILE_PHONE")
    private String phone;

    /**
     * E_MAIL
     */
    @TableField("E_MAIL")
    private String eMail;
    /**
     * BIRTHDAY
     */
    @JsonDeserialize(using = JsonLongLocalDateTimeDeserializer.class)
    @JsonSerialize(using = JsonLongLocalDateTimeSerializer.class)
    @TableField("BIRTHDAY")
    private LocalDateTime birthday;
    /**
     * ADDRESS
     */
    @TableField("ADDRESS")
    private String address;
    /**
     * ZIP_CODE
     */
    @TableField("ZIP_CODE")
    private String zipCode;
    /**
     * DATA_SOURCES
     */
    @TableField("DATA_SOURCES")
    private Integer dataSources;
    /**
     * 工种代码
     */
    @TableField("WORKER_TYPE_CODE")
    private String workerTypeCode;
    /**
     * 技师等级
     */
    @TableField("TECHNICIAN_GRADE")
    private Integer technicianGrade;
    /**
     * 默认工位
     */
    @TableField("DEFAULT_POSITION")
    private String defaultPosition;
    /**
     * IS_ONJOB
     */
    @TableField("IS_ONJOB")
    private Integer isOnjob;
    /**
     * FOUND_DATE
     */
    @JsonDeserialize(using = JsonLongLocalDateTimeDeserializer.class)
    @JsonSerialize(using = JsonLongLocalDateTimeSerializer.class)
    @TableField("FOUND_DATE")
    private LocalDateTime foundDate;
    /**
     * DIMISSION_DATE
     */
    @JsonDeserialize(using = JsonLongLocalDateTimeDeserializer.class)
    @JsonSerialize(using = JsonLongLocalDateTimeSerializer.class)
    @TableField("DIMISSION_DATE")
    private LocalDateTime dimissionDate;

    private Integer userId;
    private String empPosition;

    private String appId;

    @Override
    public String toString() {
        return "EmployeeUsersVO{" +
                "dataType=" + dataType +
                ", employeeId=" + employeeId +
                ", empRole='" + empRole + '\'' +
                ", companyId='" + companyId + '\'' +
                ", dealerCode='" + dealerCode + '\'' +
                ", employeeNo='" + employeeNo + '\'' +
                ", employeeName='" + employeeName + '\'' +
                ", lockFlag=" + lockFlag +
                ", userCode='" + userCode + '\'' +
                ", userStatus=" + userStatus +
                ", password='" + password + '\'' +
                ", organizationId=" + organizationId +
                ", positionCode='" + positionCode + '\'' +
                ", gender='" + gender + '\'' +
                ", certificateId='" + certificateId + '\'' +
                ", phone='" + phone + '\'' +
                ", eMail='" + eMail + '\'' +
                ", birthday=" + birthday +
                ", address='" + address + '\'' +
                ", zipCode='" + zipCode + '\'' +
                ", dataSources=" + dataSources +
                ", workerTypeCode='" + workerTypeCode + '\'' +
                ", technicianGrade=" + technicianGrade +
                ", defaultPosition='" + defaultPosition + '\'' +
                ", isOnjob=" + isOnjob +
                ", foundDate=" + foundDate +
                ", dimissionDate=" + dimissionDate +
                ", userId=" + userId +
                ", empPosition='" + empPosition + '\'' +
                ", appId='" + appId + '\'' +
                '}';
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public String getEmpPosition() {
        return empPosition;
    }

    public void setEmpPosition(String empPosition) {
        this.empPosition = empPosition;
    }

    public Integer getDataType() {
        return dataType;
    }

    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }

    public Integer getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmpRole() {
        return empRole;
    }

    public void setEmpRole(String empRole) {
        this.empRole = empRole;
    }

    public String getDealerCode() {
        return dealerCode;
    }

    public void setDealerCode(String dealerCode) {
        this.dealerCode = dealerCode;
    }

    public String getEmployeeNo() {
        return employeeNo;
    }

    public void setEmployeeNo(String employeeNo) {
        this.employeeNo = employeeNo;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public Integer getLockFlag() {
        return lockFlag;
    }

    public void setLockFlag(Integer lockFlag) {
        this.lockFlag = lockFlag;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Integer organizationId) {
        this.organizationId = organizationId;
    }

    public String getPositionCode() {
        return positionCode;
    }

    public void setPositionCode(String positionCode) {
        this.positionCode = positionCode;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getCertificateId() {
        return certificateId;
    }

    public void setCertificateId(String certificateId) {
        this.certificateId = certificateId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }


    public String geteMail() {
        return eMail;
    }

    public void seteMail(String eMail) {
        this.eMail = eMail;
    }

    public LocalDateTime getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDateTime birthday) {
        this.birthday = birthday;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public Integer getDataSources() {
        return dataSources;
    }

    public void setDataSources(Integer dataSources) {
        this.dataSources = dataSources;
    }

    public String getWorkerTypeCode() {
        return workerTypeCode;
    }

    public void setWorkerTypeCode(String workerTypeCode) {
        this.workerTypeCode = workerTypeCode;
    }

    public Integer getTechnicianGrade() {
        return technicianGrade;
    }

    public void setTechnicianGrade(Integer technicianGrade) {
        this.technicianGrade = technicianGrade;
    }

    public String getDefaultPosition() {
        return defaultPosition;
    }

    public void setDefaultPosition(String defaultPosition) {
        this.defaultPosition = defaultPosition;
    }

    public Integer getIsOnjob() {
        return isOnjob;
    }

    public void setIsOnjob(Integer isOnjob) {
        this.isOnjob = isOnjob;
    }

    public LocalDateTime getFoundDate() {
        return foundDate;
    }

    public void setFoundDate(LocalDateTime foundDate) {
        this.foundDate = foundDate;
    }

    public LocalDateTime getDimissionDate() {
        return dimissionDate;
    }

    public void setDimissionDate(LocalDateTime dimissionDate) {
        this.dimissionDate = dimissionDate;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

}
